/**
 * @author Aaron
 * @createTime 15:01 2022/5/17
 **/
package models_main

import (
	"fmt"
	"longmen/server/pkg/db/mysql/models"
	"time"
)

type UserActivity struct {
	Id         uint
	Uid        uint
	ActivityId uint8
	CreatedAt  time.Time `gorm:"column:create_time"`
	Stage      uint8
	IsReceived uint8
	Category   uint8 `json:"category"` //活动类型:0未配置,1注册送,2续费送
}

func (UserActivity) TableName() string {
	return fmt.Sprintf("%suser_activity", models.Prefix)
}
